﻿@page "/prints"
@inject IStringLocalizer<Prints> Localizer

<h3>@Localizer["Title"]</h3>

<h4>@Localizer["SubTitle"]</h4>

<Tips class="mt-3">
    <ul class="ul-demo">
        <li>@((MarkupString)Localizer["Tips1"].Value)</li>
        <li>@((MarkupString)Localizer["Tips2"].Value)</li>
    </ul>
</Tips>

<Pre>&lt;body&gt;
    &lt;app&gt;
        @@(await Html.RenderComponentAsync&lt;App&gt;(RenderMode.ServerPrerendered))
    &lt;/app&gt;
&lt;/body&gt;</Pre>

<Pre>&lt;PrintButton Icon="fa fa-print" Text="@Localizer["PreButtonText"]" PreviewUrl="/printview" /&gt;</Pre>

<DemoBlock Title="@Localizer["PrintButtonTitle"]" Introduction="@Localizer["PrintButtonIntro"]" Name="PrintButton">
    <p>@Localizer["PrintP1"]</p>
    <PrintButton Icon="fa fa-print" Text="@Localizer["PreButtonText"]" PreviewUrl="/printview" />
</DemoBlock>

<DemoBlock Title="@Localizer["PrintDialogTitle"]" Introduction="@Localizer["PrintDialogIntro"]" Name="PrintDialog">
    <p>@((MarkupString)Localizer["PrintDialogP", nameof(DataDialogComponent), nameof(DialogOption.ShowPrintButtonInHeader)].Value)</p>
    <Button Icon="fa fa-print" Text="@Localizer["PreButtonText"]" OnClick="OnClickPrint" />
</DemoBlock>

<DemoBlock Title="@Localizer["PrintServiceTitle"]" Introduction="@Localizer["PrintServiceIntro"]" Name="PrintService">
    <Button Icon="fa fa-print" Text="@Localizer["PreButtonText"]" OnClick="OnClickPrintService" />
</DemoBlock>
